import service from '@/utils/request'

export const useIotLogApi = (id: number) => {
	return service.get('/iot/opera/log/' + id)
}

export const useIotLogSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/iot/opera/log', dataForm)
	} else {
		return service.post('/iot/opera/log', dataForm)
	}
}